package com.atcper

import scala.Console.println

/**
 * @author : ranzlupup
 * @date : 2023/2/22 08:39
 */
object Scala09_Lazy {


    def main(args: Array[String]): Unit = {
        def test()= {
            println("function...")
            "test"
        }

        val str = test()
        println("--------------")
        println(str)

        println("=====================")

        lazy val str1 = test()
        println("--------------")
        println(str1)
    }
}
